package com.yanqu.road.logic.bussiness.player.activity;

import com.yanqu.road.dao.impl.activity.stronghold.CrossStrongholdEliminateUnionScoreDaoImpl;
import com.yanqu.road.entity.activity.stronghold.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class CrossStrongholdBusiness {
    public static Map<Integer,Map<String, List<CrossStrongholdEliminateDefendPatrons>>> getEliminatePatrons(int activityId) {
        return DaoHelper.getCrossStrongholdEliminatePatronsDaoImpl().getStrongholdEliminateDefendPatrons(activityId);
    }

    public static List<CrossStrongholdEliminateDefendPatrons> getEliminatePatronsList(int activityId) {
        return DaoHelper.getCrossStrongholdEliminatePatronsDaoImpl().getEliminatePatronsList(activityId);
    }

    public static boolean addEliminatePatrons(CrossStrongholdEliminateDefendPatrons defendPatrons) {
        return DaoHelper.getCrossStrongholdEliminatePatronsDaoImpl().add(defendPatrons);
    }

    public static boolean updateEliminatePatrons(CrossStrongholdEliminateDefendPatrons defendPatrons) {
        return DaoHelper.getCrossStrongholdEliminatePatronsDaoImpl().update(defendPatrons);
    }

    public static Map<Integer,Map<Integer, CrossStrongholdEliminateUnion>> getEliminateUnion(int activityId) {
        return DaoHelper.getCrossStrongholdEliminateUnionDaoImpl().getCrossStrongholdEliminateUnion(activityId);
    }

    public static List<CrossStrongholdEliminateUnion> getEliminateUnionList(int activityId) {
        return DaoHelper.getCrossStrongholdEliminateUnionDaoImpl().getEliminateUnionList(activityId);
    }

    public static boolean addEliminateUnion(CrossStrongholdEliminateUnion union) {
        return DaoHelper.getCrossStrongholdEliminateUnionDaoImpl().add(union);
    }

    public static boolean updateEliminateUnion(CrossStrongholdEliminateUnion union) {
        return DaoHelper.getCrossStrongholdEliminateUnionDaoImpl().update(union);
    }

    public static boolean addEliminateDamageRecord(CrossStrongholdEliminateDamage damage) {
        return DaoHelper.getCrossStrongholdEliminateDamageDaoImpl().add(damage);
    }

    public static boolean updateEliminateDamageRecord(CrossStrongholdEliminateDamage damage) {
        return DaoHelper.getCrossStrongholdEliminateDamageDaoImpl().update(damage);
    }

    public static Map<String, Map<Long, Map<String, CrossStrongholdEliminateDamage>>> getEliminateDamageRecordMap(int activityId, int round) {
        return DaoHelper.getCrossStrongholdEliminateDamageDaoImpl().getCrossStrongholdEliminateDamage(activityId, round);
    }

    public static List<CrossStrongholdEliminateDamage> getEliminateDamageRecordList(int activityId) {
        return DaoHelper.getCrossStrongholdEliminateDamageDaoImpl().getEliminateDamageRecordList(activityId);
    }

    public static Map<String, StrongholdEliminateUnionScore> getStrongholdEliminateUnionScoreMap(int activityId) {
        return DaoHelper.getCrossStrongholdEliminateUnionScoreDaoImpl().getStrongholdEliminateUnionScore(activityId);
    }

    public static boolean addStrongholdEliminateUnionScore(StrongholdEliminateUnionScore unionScore) {
        return DaoHelper.getCrossStrongholdEliminateUnionScoreDaoImpl().add(unionScore);
    }

    public static boolean updateStrongholdEliminateUnionScore(StrongholdEliminateUnionScore unionScore) {
        return DaoHelper.getCrossStrongholdEliminateUnionScoreDaoImpl().update(unionScore);
    }

    public static    Map<Integer, Map<Long, CrossStrongholdUserRoungDamage>> getCrossUserRoundDamage(int activityId) {
       return DaoHelper.getCrossStrongholdUserRoundDamageDaoImpl().getCrossStrongholdUserRoungDamage(activityId);
    }

    public static boolean addUserRoundDamage(CrossStrongholdUserRoungDamage damage) {
        return DaoHelper.getCrossStrongholdUserRoundDamageDaoImpl().add(damage);
    }

    public static boolean updateUserRoundDamage(CrossStrongholdUserRoungDamage damage) {
        return DaoHelper.getCrossStrongholdUserRoundDamageDaoImpl().update(damage);
    }
}
